﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Feifansoft.Core.Common.Utils
{
    public static class GuidHelper
    {
        #region 获取16位Guid
        /// <summary>
        /// 获取16位Guid
        /// </summary>
        /// <returns></returns>
        public static string GetGuid16()
        {
            long i = 1;
            foreach (byte b in Guid.NewGuid().ToByteArray())
                i *= ((int)b + 1);
            return string.Format("{0:x}", i - DateTime.Now.Ticks);
        }
        #endregion
    }
}
